FROM debian:bullseye

# 安装系统依赖 + Python + pip
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        python3 python3-pip python3-setuptools python3-dev \
        gcc libc-dev build-essential && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

COPY generate_ecommerce_data.py .

CMD ["python3", "generate_ecommerce_data.py"]
